package com.mall.user.constant;

/**
 * @author: xrj
 * @date: 2022/5/1 15:50
 * @description:
 */
public enum UserServiceEnum {

    SUCCESS("10000", "成功"),
    PWD_ERROR("20001", "用户密码错误"),
    USER_NO_EXIST("20002", "用户不存在"),
    ACCOUNT_NO_ACTIVE("20003", "用户账户未激活"),
    VERIFY_FAIL("20004", "验证码生成失败"),
    VERIFY_ERROR("20005", "验证码错误"),
    TOKEN_CREATE_ERROR("20006", "TOKEN生成失败"),
    TOKEN_VERIFY_ERROR("20007", "TOKEN校验失败"),
    ;


    private String code;
    private String msg;

    UserServiceEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
